import request from '@/utils/request'

export function getProductionList(query) {
  return request({
    url: '/knowledge/production/getList',
    method: 'post',
    data: query
  })
}

export function getProductionDetail(id) {
  return request({
    url: '/knowledge/production/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByProductionID(id) {
  return request({
    url: '/knowledge/production/change-status',
    method: 'post',
    data: id
  })
}

export function saveProduction(formdata) {
  return request({
    url: '/knowledge/production/save',
    method: 'post',
    data: formdata
  })
}

export function deleteProductionByID(id) {
  return request({
    url: '/knowledge/production/delete',
    method: 'post',
    data: id
  })
}
export function removeProductionByID(id) {
  return request({
    url: '/knowledge/production/remove',
    method: 'post',
    data: id
  })
}

export function getProductionAvabile() {
  return request({
    url: '/knowledge/production/getAvailable',
    method: 'post'
  })
}
